﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">        
    	$(document).ready(function(){
    		$('#del_finger_menu').menu();    		
    		$('#vendor').combobox();
     		$('#link_finger_detail_panel').window();
    		
     		$('#save').click(function (){
              post_request('linkWorkerFinger.action',{
              	identifyno:$('#identifyno_val').val(),
              	linkfinger:get_linked_finger()},
                  function (data){
                    $.messager.alert('关联员工指纹', data.result.message, 'info');
                    
                    if (data.result.code=='0'){
                      var $tbl = $('#worker_table');
                      var row = $tbl.datagrid('getSelected');
                      var index = $tbl.datagrid('getRowIndex',row);
                      row.linkStatus=get_link_status();
                      $tbl.datagrid('refreshRow', index);
                      $('#link_finger_detail_panel').window('close');
                    }
                  });
    		});

     		$('#cancel').click(function (){
     			$('#link_finger_detail_panel').window('close');
    		});
    	});
    </script>
	</head>
	<body>
	
    <div id="link_finger_detail_panel" collapsible="false" fit="false" title="关联员工指纹" 
    	resizable="false" collapsible="false" minimizable="false" maximizable="false" 
    	closable="true" closed="true" icon="icon-save" modal="true" class="jquery_window">
    	<s:form id="link_finger_form" action="linkWorkerFinger" 
    		cssStyle="margin:20px,35px,30px,50px">
    		<s:hidden id="finger"></s:hidden>
    		<s:include value="/app/finger_info.jsp"></s:include>
    		<table>
    			<tr height="24px">
    				<td><s:label value="所属机构："></s:label></td>
    				<td width="220px"><s:label id="deptno"></s:label></td>
    			</tr>
    			<tr height="24px">
    				<td><s:label value="身份证号："></s:label></td>
    				<td width="220px"><s:label id="identifyno"></s:label>
    				<s:hidden id="identifyno_val" name="identifyno"></s:hidden></td>
    			</tr>
    			<tr height="24px">
    				<td><s:label value="姓名："></s:label></td>
    				<td width="220px"><s:label id="name"></s:label></td>
    			</tr>
    			<tr><td colspan="2"><s:include value="/app/finger_hand.jsp">
    				</s:include></td></tr>
    			<tr>
    				<td colspan="2" align="center">
            			<button id="save" class="buttons_css" style="width:70px">
            				<label style="70px" class="save_css">保存</label></button>
            			<label style="width:20px"></label>
            			<button id="cancel" class="buttons_css" style="width:70px">
            				<label style="70px" class="cancel_css">返回</label></button>
    				</td>
    			</tr>
    		</table>
    	</s:form>
    </div>
    </body>
</html>